package com.lazyproject;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.net.InetAddress;
import java.net.UnknownHostException;


@SpringBootApplication
@Slf4j
public class LazyprojectApplication {

    public static void main(String[] args) throws UnknownHostException {
        SpringApplication.run(LazyprojectApplication.class, args);

        String ip = InetAddress.getLocalHost().getHostAddress();
        String port = "8080";
        log.info("\n----------------------------------------------------------\n\t" +
                "Application dgcimi-backend is running! Access URLs:\n\t" +
                "Local: \t\thttp://localhost:" + port + "/\n\t" +
                "External: \thttp://" + ip + ":" + port + "/\n\t " +
                "Doc: \t\thttp://" + ip + ":" + port + "/doc.html\n" +
                "----------------------------------------------------------");
    }

}
